<?php
    /* 
     * @property int $id_profile int
     * @property string $value varchar
     */
    class WZModel_Profile extends WZ_Model_Abstract
    {
        protected $_name         = 'profile';
        protected $_primary      = 'id_profile';
        protected $_rowClass     = 'WZModel_Row_Profile';
        protected $_referenceMap = array();
        
        /**
         * @param mix $value
         * @return WZModel_Profile
         */
        public function findByIdProfile($value)
        {
            return $this->findOne(array('id_profile = ?' => $value));
        }

        /**
         * @param mix $value
         * @return WZModel_Profile
         */
        public function findByValue($value)
        {
            return $this->findOne(array('value = ?' => $value));
        }
    }
    
    class WZModel_Row_Profile extends Zend_Db_Table_Row_Abstract
    {
         /**
         * Set id_profile (int)
         *
         * @param int $value
         * @return Model_Base_User
         */
        public function setIdProfile($value)
        {
            $this->id_profile = $value;
            return $this;
        }

        /**
         * Get id_profile (int)
         *
         * @return int
         */
        public function getIdProfile()
        {
            return $this->id_profile;
        }

        public function setValue($value)
        {
            $this->value = $value;
            return $this;
        }
        
        public function getValue()
        {
            return $this->value;
        }
    }